<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheep" type="text/css" href="/bbs/css/index.css">
</head>
<body> 
	<div class="div_login">
		<form action="/bbs/login_servlet" method="post">
			<table>
				<caption><font class="f_login">请登录</font></caption>
				<tr>
					<th>账号:</th>
					<td><input type="text" name="uid"/></td>
				</tr>
				<tr>
					<th>密码:</th>
					<td><input type="password" name="upwd"/></td>
				</tr>
				<tr>
					<td colspan="2"><input type="reset" name="chongxie" value="重填"/>
					&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="登录" /></td>
				</tr>
			</table>
		</form>
		<div class = "div_login_hint">
			<%
					Integer loginSum = (Integer)(request.getSession().getAttribute("login_sum"));//获取用户登录失败次数
					if(loginSum != null && loginSum!=0){ %>  <%-- 如果session值是空的或者session值不是0就说明用户登录失败  --%>
						<jsp:include page="login_error.jsp" flush="true"/><%--判断用户登录失败就对应用进行提示 --%>
				<% loginSum = null;
					request.getSession().setAttribute("login_sum", loginSum);
				} %>		
		</div>
		<div class="div_a_zhuce">
			<a href="/bbs/page/register.jsp">用户注册</a>
		</div>
	</div>
	
</body>
</html>